package com.cs.pk.job;



import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Cursor;
import org.eclipse.ui.PlatformUI;

import com.cs.pk.interfaces.PopulateInterface;

public class PopulateList {
	
	public static void populateComponent(final PopulateInterface pi,final Object payload) {
		PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
					public void run() {
						Cursor cursor = new Cursor(PlatformUI.getWorkbench().getDisplay(),SWT.CURSOR_WAIT);
						pi.start(payload);			
						
						//cursor.dispose();
					}
		});
	}
	

}
